package de.gameduell.framework.game.billard.model {
	import de.gameduell.framework.game.billard.controller.BillardEngine;
	
	import org.cove.ape.Vector;
	
	import flash.display.Sprite;	

	/**
	 * @author cbra
	 */
	public class Hole {
		private var _position:Vector;
		private var _radius:Number;
		private var _id:int;
		private var _sprite:Sprite;

		public function Hole(apEngine:BillardEngine,aSprite:Sprite,aId:int) {
			_position = new Vector(aSprite.x,aSprite.y);
			_radius = aSprite.width/2;
			_id	= aId;
			_sprite = aSprite;
			apEngine.addHole(this);
		}
		
		public function get sprite():Sprite{
			return _sprite;
		}
		
		public function get id():int{
			return _id;
		}
		
		public function get position():Vector{
			return _position;
		}
		
		public function get radius():Number{
			return _radius;
		}
		

		
	}
}
